package com.cf.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cf.domain.dto.UserDTO;
import com.cf.domain.pojo.PageQuery;
import com.cf.domain.pojo.User;
import com.cf.domain.vo.TeamVO;
import com.cf.domain.vo.UserVO;

import java.util.List;
import java.util.Map;

public interface IUserService extends IService<User> {

    UserVO login(UserDTO userDTO);

    UserVO register(UserDTO userDTO);

    int update(UserDTO userDTO);

    int updatePwd(UserDTO userDTO, String newPwd);

    Page<User> selectList(PageQuery pageQuery);

    Page<TeamVO> selectTeamList(PageQuery pageQuery, UserVO userVO);

    List<TeamVO> selectMembers(Map<String, Object>map, UserVO userVO);

    List<TeamVO> selectMembers(Map<String, Object>map);

    TeamVO getTeam(Long id);

}
